package model.beans;

import java.util.Calendar;
import java.util.HashMap;
import java.util.Map;

import business.misc.Util;

public class ExamenBean {
	private int id;
	private String lugar;
	private Calendar fechaCal;
	private String fecha;
	private String hora;
	private String subject_id;
	private String academy_id;
	private Map map_id;
	public String getFecha() {
		return fecha;
	}
	public void setFecha(String fecha) {
		this.fecha = fecha;
	}
	public Calendar getFechaCal() {
		return fechaCal;
	}
	public void setFechaCal(Calendar fechaCal) {
		this.fechaCal = fechaCal;
		this.fecha = Util.dateToString(fechaCal.getTime());
	}
	public String getHora() {
		return hora;
	}
	public void setHora(String hora) {
		this.hora = hora;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
		map_id = new HashMap();
		map_id.put("exam_id", new Integer(this.id));
	}
	public String getLugar() {
		return lugar;
	}
	public void setLugar(String lugar) {
		this.lugar = lugar;
	}
	public Map getMap_id() {
		return map_id;
	}
	public void setMap_id(Map map_id) {
		this.map_id = map_id;
	}
	public String getAcademy_id() {
		return academy_id;
	}
	public void setAcademy_id(String academy_id) {
		this.academy_id = academy_id;
		if( map_id != null )
			map_id.put("academy_id", academy_id);
	}
	public String getSubject_id() {
		return subject_id;
	}
	public void setSubject_id(String subject_id) {
		this.subject_id = subject_id;
		if( map_id != null )
			map_id.put("subject_id", subject_id);
	}
}
